home *** CD-ROM | disk | FTP | other *** search
- define picture_res 80
-
- viewpoint {
- from <0, 0, -10>
- at <0,0,0>
- up <0,1,0>
- angle 30
- aspect 2
- resolution 2*picture_res, picture_res
- }
-
- file_flush picture_res
- background <0, 0, 0>
- light <-10,3, -20>
- define red <1,0,0>
- define white <1,1,1>
-
- define sin_color_offset (sin(3.14 * fmod(x*y*z, 1)) + 1) / 2
- define sin_color <sin_color_offset, 0, 1 - sin_color_offset>
- define xyz_sin_texture
- texture {
- special surface {
- color sin_color
- ambient 0.2
- diffuse 0.8
- specular white, 0.5
- microfacet Reitz 10
- }
- }
-
- object {
- polynomial x^2 + y^2 + z^2 - 1
- xyz_sin_texture
- translate <-2.5, 0, 0>
- }
-
- object {
- polynomial x^2 + y^2 + z^2 - 1
- xyz_sin_texture
- }
-
- object {
- polynomial x^2 + y^2 + z^2 - 1
- xyz_sin_texture
- translate < 2.5, 0, 0>
- }
-